package com.bl.weilan.dao.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "company_invester")
@ApiModel(value = "CompanyInvesterEntity", description = "公司投资者")
@DynamicInsert
@DynamicUpdate
public class CompanyInvesterEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "百分比")
    private String percent;

    @ApiModelProperty(value = "被投资方")
    @Column(name = "invested_name")
    private String investedName;

    @ApiModelProperty(value = "注册资本")
    private float pay;

    @ApiModelProperty(value = "公司id")
    @Column(name = "company_id")
    private String companyId;

    @ApiModelProperty(value = "公司id")
    @Column(name = "financing_id")
    private String financingId;

    @ApiModelProperty(value = "投资公司id")
    @Column(name = "invested_id")
    private String investedId;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;
}
